<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="spring-sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="cf" uri="http://kyub.com/jsp/jstl/functions" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net/el" %>
<%@ taglib prefix="gears" uri="http://kyub.com/jsp/jstl/crud" %>

<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<tiles:insertTemplate template="/tiles/classic.jsp">

<tiles:putAttribute name="scripts">

    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-ui-1.7.2.custom.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.form.js"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/smoothness/jquery-ui-1.7.2.custom.css" type="text/css" media="screen"/>
    <gears:listScripts pojoDescriptor="${pojoDescriptor}" gears_restfull_prefix="${gears_restfull_prefix}" listDivName="${pojoDescriptor.name}_list" dialogDivName="${pojoDescriptor.name}_dialog"/>
</tiles:putAttribute>
<tiles:putAttribute name="body">

     <gears:ria-search pojoDescriptor="${pojoDescriptor }" gears_restfull_prefix="${gears_restfull_prefix}"/>

    <div id="${pojoDescriptor.name}_dialog"></div>
    <div id="${pojoDescriptor.name}_list">
    	<gears:list pojoDescriptor="${pojoDescriptor}" pojoList="${pojoList}" gears_restfull_prefix="${gears_restfull_prefix}"/>
	</div>
	
	<div>
		<gears:insert pojoDescriptor="${pojoDescriptor}" gears_restfull_prefix="${gears_restfull_prefix}"/>
	</div>

</tiles:putAttribute>
</tiles:insertTemplate>